package com.itchen.service;

import com.github.pagehelper.PageInfo;
import com.itchen.emtity.dataobject.UploadDO;
import com.itchen.emtity.vo.UploadVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface FileUploadService {
    void uploadFile(MultipartFile file) throws IOException;

    PageInfo<UploadDO> getUploadFileList(Integer page, Integer limit, String orName);

    void deleteUploadFileDataById(String uploadId);

    void downloadUploadFilesData(String uploadId, String sign, HttpServletResponse response);

    UploadVO getUploadFileById(String uploadId);

    void deleteUploadFileDataByIds(List<UploadVO> uploadVOS);
}
